<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>无标题文档</title>
	<link href="/res/css/style.css" rel="stylesheet" type="text/css" />
	<link href="/res/js/lib/layer/skin/layer.css" rel="stylesheet" type="text/css" />
	<link href="/res/js/lib/layer/skin/layer.ext.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="/res/js/jquery.js"></script>
	<script type="text/javascript" src="/res/js/lib/json2.js"></script>	
	<script type="text/javascript" src="/res/js/lib/layer/layer.js"></script>
	<script type="text/javascript" src="/res/js/common/msgTools.js"></script>	
	<script language="javascript" type="text/javascript" src="/res/js/lib/datePicker/WdatePicker.js"></script>		
 	<script type="text/javascript" src="/res/js/pages/front/feedbackList.js"></script>
</head>
<body>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">前端管理</a></li>
    <li><a href="#">反馈管理</a></li>
    </ul>
    </div>
    
    <div class="rightinfo">
   <form id="queryForm" action="/feedback/list" method="post"> 
    <div class="tools" style="margin:3px 0px;background: #efefef;padding:6px 0px;">
        <span class="toolbar" style="margin-left:10px;">
		   标题：<input name="feedback" value="${dto.feedback}" type="text" class="dfinput" style="width:360px;"/>
            
        </span>
	    <ul class="toolbar" style="margin-left:20px;">
	        <li onclick="$('#queryForm').submit()"><span><img src="/res/images/ico06.png" /></span>搜索</li>
        </ul> 
   </div>  

     <table class="tablelist">
    	<thead>
	    	<tr>
	        <th width="30px;" class="chk"><input id="chkAll" type="checkbox" value="" /></th>
			<th>内容</th>
			<th>反馈人手机号</th>
			<th>反馈时间</th>
			<!-- <th>处理结果</th> -->
			<th width="100px;">状态</th>
			<th width="250px;">操作</th>
	        </tr>
        </thead>
        <tbody>        
	        <c:forEach items="${list}" var="row" varStatus="status">
		        <tr>
		        <td align="center"><input id="chk_${row.id}" type="checkbox" value="${row.id}" /></td>
		        <td title="${row.feedback}">${fn:substring(row.feedback,0,30)}${fn:length(row.feedback)>30?"...":""}</td>
		        <td>${row.mobile}</td>
		        <td>${row.create_time }</td>
		        <%-- <td title="${row.audit_msg}">${fn:substring(row.audit_msg,0,50)}${fn:length(row.audit_msg)>50?"...":""}</td> --%>
		        <td>${row.status==1?"<span class='green'>已处理</span>":"未处理"}</td>
		        <td>
		            <c:choose>
		               <c:when test="${row.status==1}">
		               </c:when>
		               <c:when test="${row.status!=1}">
			            <a href="javascript:process('${row.id}')" class="tablelink">处理</a>     
			            <a href="javascript:deleteMsg('${row.id}')" class="tablelink">删除</a> 	
		               </c:when>		               
		            </c:choose>	  
		        </td>
		        </tr> 
	        </c:forEach>
         </tbody>
    </table>  
    </form>
      
    <tags:pager pagerRange="10" pageSize="${pager.pageSize}" totalPage="${pager.pageCount}" curIndex="${pager.pageIndex}" rowCount="${pager.rowCount}" formId="queryForm"></tags:pager> 
 
    
    </div>
    
    <script type="text/javascript">
	   $('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>

</html>
